<template>
  <t-select :placeholder="item.placeholder" :options="item.options || []" @change="handleSelectChange" />
</template>

<script setup lang="ts">
const props = defineProps({
  item: {
    type: Object as any,
    default: () => {
      return [];
    },
  },
});

const emits = defineEmits(['change']);

const handleSelectChange = (value: any) => {
  emits('change', { value, data: props.item });
};
</script>

<style lang="less" scoped></style>
